package com.itany.pojo;

import java.util.Date;
import java.util.List;

public class Book {
    private Integer id;

    private String bookname;

    private String author;

    private Date publishdate;

    private String groupprice;

    private String price;

    private String format;

    private String pagenumber;

    private String isbn;

    private String barcode;

    private Integer layout;

    private Integer printingnumber;

    private String register;

    private String weight;

    private Integer typeid;

    private Date createtime;

    private Integer pressid;

    private Integer number;

    private String imgurl;

    private Integer flag;

    private Integer recommend;

    private Press press;

    private Integer sellnum;

    public Integer getSellnum() {
        return sellnum;
    }

    public void setSellnum(Integer sellnum) {
        this.sellnum = sellnum;
    }

    public Press getPress() {
        return press;
    }

    public void setPress(Press press) {
        this.press = press;
    }

    private List<Supplier> suppliers;

    public List<Supplier> getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(List<Supplier> suppliers) {
        this.suppliers = suppliers;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname == null ? null : bookname.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public Date getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(Date publishdate) {
        this.publishdate = publishdate;
    }

    public String getGroupprice() {
        return groupprice;
    }

    public void setGroupprice(String groupprice) {
        this.groupprice = groupprice == null ? null : groupprice.trim();
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price == null ? null : price.trim();
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format == null ? null : format.trim();
    }

    public String getPagenumber() {
        return pagenumber;
    }

    public void setPagenumber(String pagenumber) {
        this.pagenumber = pagenumber == null ? null : pagenumber.trim();
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn == null ? null : isbn.trim();
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode == null ? null : barcode.trim();
    }

    public Integer getLayout() {
        return layout;
    }

    public void setLayout(Integer layout) {
        this.layout = layout;
    }

    public Integer getPrintingnumber() {
        return printingnumber;
    }

    public void setPrintingnumber(Integer printingnumber) {
        this.printingnumber = printingnumber;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register == null ? null : register.trim();
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight == null ? null : weight.trim();
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getPressid() {
        return pressid;
    }

    public void setPressid(Integer pressid) {
        this.pressid = pressid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl == null ? null : imgurl.trim();
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", publishdate=" + publishdate +
                ", groupprice='" + groupprice + '\'' +
                ", price='" + price + '\'' +
                ", format='" + format + '\'' +
                ", pagenumber='" + pagenumber + '\'' +
                ", isbn='" + isbn + '\'' +
                ", barcode='" + barcode + '\'' +
                ", layout=" + layout +
                ", printingnumber=" + printingnumber +
                ", register='" + register + '\'' +
                ", weight='" + weight + '\'' +
                ", typeid=" + typeid +
                ", createtime=" + createtime +
                ", pressid=" + pressid +
                ", number=" + number +
                ", imgurl='" + imgurl + '\'' +
                ", flag=" + flag +
                ", recommend=" + recommend +
                '}';
    }
}